package top.whysu.edevice.dto.manage;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 秘钥新增/删除对象
 */
public class SecretKeyAddModifyDTO {
    /**
     * 主键
     */
    private BigDecimal id;
    /**
     * 密钥名称
     */
    @NotBlank(message = "秘钥名称不能为空！")
    private String secretKeyName;
    /**
     * 凭证组id, 对应e_manage_voucher凭证管理表的主键id
     */
    @NotNull(message = "请选择所属凭证组！如果为空的话，需要申请凭证组权限！")
    private BigDecimal voucherId;
    /**
     * 萤石对应的appKey
     */
    @NotBlank(message = "appKey不能为空！")
    private String appKey;
    /**
     * 萤石对应的appSecret
     */
    @NotBlank(message = "appSecret不能为空！")
    private String appSecret;
    /**
     * 摄像头限制数量
     */
    @NotNull(message = "摄像头限制数量不能为空！")
    private Integer cameraLimitNum;
    /**
     * 采集器限制数量
     */
    @NotNull(message = "采集器限制数量不能为空！")
    private Integer collectLimitNum;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getSecretKeyName() {
        return secretKeyName;
    }

    public void setSecretKeyName(String secretKeyName) {
        this.secretKeyName = secretKeyName;
    }

    public BigDecimal getVoucherId() {
        return voucherId;
    }

    public void setVoucherId(BigDecimal voucherId) {
        this.voucherId = voucherId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Integer getCameraLimitNum() {
        return cameraLimitNum;
    }

    public void setCameraLimitNum(Integer cameraLimitNum) {
        this.cameraLimitNum = cameraLimitNum;
    }

    public Integer getCollectLimitNum() {
        return collectLimitNum;
    }

    public void setCollectLimitNum(Integer collectLimitNum) {
        this.collectLimitNum = collectLimitNum;
    }
}
